/*!
 * SPDX-License-Identifier: Apache-2.0
 *
 * The OpenSearch Contributors require contributions made to
 * this file be licensed under the Apache-2.0 license or a
 * compatible open source license.
 *
 * Modifications Copyright OpenSearch Contributors. See
 * GitHub history for details.
 */

.ouiQuickSelectPopover__content {
  width: $ouiFormMaxWidth;
  max-width: 100%;
}

.ouiQuickSelectPopover__section {
  @include ouiScrollBar;
  max-height: $ouiSizeM * 11;
  overflow: hidden;
  overflow-y: auto;
  padding: $ouiSizeS 0 $ouiSizeXS; // Offset negative margin from flex items
}

// sass-lint:disable no-important
.ouiQuickSelectPopover__buttonText {
  // Override specificity from universal and sibling selectors
  margin-right: calc($ouiSizeXS / 2) !important;
}

.ouiQuickSelectPopover__anchor {
  height: 100%;
}

.ouiQuickSelectPopover__sectionItem {
  font-size: $ouiFontSizeS;
  line-height: $ouiFontSizeS;

  &:not(:last-of-type) {
    margin-bottom: $ouiSizeS;
  }
}
